package com.orange.factoryPatterns.factory;

import com.orange.factoryPatterns.config.ShapeConfig;
import com.orange.factoryPatterns.pojo.Rectangle;

public class RectangleFactory{
    public Rectangle getRectangle(ShapeConfig config){
        Rectangle rectangle = new Rectangle();
        //通过config对rectangle进行配置
        //.....
        //.....
        //.....
        return rectangle;
    }
}
